<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$data.title}- 积分换礼 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/jifen.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>

<div class="b-page">
    <include file="Public:header"/>

<a href="{$midad.linkurl}" class="b-banner_big" style="background-image: url(__FILESURL__{$midad.image});"></a>
<div style="overflow:hidden;background-color:#f5f4f2;padding-bottom:20px;">
    <div class="b-body l-center l-mgt20" style="background-color:#fff;padding-top:30px;">
        <div class="b-body__left" style="width:600px;padding-left:20px;">
            <div style="overflow:hidden;">
                <div style="width:20%;height:30px;line-height:30px;font-size:18px;color:#666666;font-weight:bold;float:left;border-bottom:2px solid #ff6600;">积分换礼</div>
                <div style="float:right;width:80%;height:30px;border-bottom:2px solid #dedede;"></div>
            </div>

            <div class="b-jifen" style="border:none;">
                <div class="b-jifen__body">
                    <div class="b-jifen__t1">{$data.title}</div>
                    <div class="b-jifen__t2">兑换价格：<span>{$data.needjf}</span> 烘焙圈积分</div>
                    <div class="b-jifen__t2">申请数量：<span>{$data.requestnum}</span> 个</div>
                    <div class="b-jifen__t2">已兑数量：<span>{$data.dhnum}</span> 个</div>
                    <div class="b-jifen__t2">库存数量：<span>{$data.stocknum}</span> 个</div>
                    <div class="b-jifen__t2">邮　　费：{$data.postfee} 元</div>
                    <if condition="$rcount gt 0">
                        <div class="jifen-applied-btn">您已兑换</div>
                        <else/>
                    <div class="b-jifen__t2"><a href="__WEBURL__/jifen/apply/" class="J_ajax_link b-jifen__t4" data-datas="infoid,{$data.id}">我要兑换</a></div>
                        </if>
                    <img src="__FILESURL__{$data.image}" alt="" class="b-jifen__t5">
                </div>

                <div class="jifen-content">{$data.content}</div>
            </div>

        </div>
        <div class="b-body__right" style="margin-right:20px;">
            <if condition="$userinfo.userid eq ''">
                <div class="b-jfLogin">
                    <a href="__WEBURL__/user/login/register" class="b-jfLogin__btn">快速注册赢礼品</a>
                    <div style="font-size:18px;padding:20px 0;">已有帐号? 点此<a href="__WEBURL__/user/login" class="b-jfLogin__btn2">登录</a></div>
                    <div style="overflow:hidden;font-size:14px;color:#6f6f6f;height:32px;line-height:32px;text-align:left; display: none">
                        <span style="float:left;padding-left:50px;">合作帐号快速登录：</span>
                        <a href="" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_qq.png"></a>
                        <a href="" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_weibo.png"></a>
                    </div>
                </div>
            <else/>

            <div class="b-popRightUser" style="border-bottom:1px solid #d6dfe3;padding-top:30px;padding-bottom:20px;">
                <a href="__WEBURL__/u/{$userinfo.openuid}" class="b-popRightUser__pic" style="top:30px;"><img class="l-full" src="{$userinfo.uavatar|getUavatar}"><i class="b-picMask"></i></a>
                <a href="__WEBURL__/u/{$userinfo.openuid}" class="b-popRightUser__name">{$userinfo.nickname}的烘焙厨房</a>
                <div class="b-popRightUser__info">
                    <a href="__WEBURL__/u/{$userinfo.openuid}/fans">{$userinfo.fansnum}</a><span>人关注</span>
                    <span class="b-popRightUser__line">|</span>
                    <a href="__WEBURL__/u/{$userinfo.openuid}">{$userinfo.worksnum}</a><span>个烘焙作品</span>
                </div>
            </div>
            <div style="height:40px;line-height:40px;font-size:18px;color:#000;">我的积分：<b style="color:#ff4c01;">{$userinfo.upoint}</b></div>

                </if>

            <div class="b-sideBox l-mgt20" style="overflow:hidden;padding-bottom:20px;">
                <div class="b-sideBox__title">
                    <div class="b-sideBox__name">最近兑换了这个礼品的焙友</div>
                </div>
                <empty name="dhlist"><div class="nodata">暂无人兑换</div></empty>
                <foreach name="dhlist" item="dl">
                    <div class="b-block1">
                        <a href="__WEBURL__/u/{$dl.openuid}" class="b-block1__pic"><img src="{$dl.uavatar|getUavatar}"><i class="b-popOtherZuopin__itemMask"></i></a>
                        <a href="__WEBURL__/u/{$dl.openuid}" class="b-block1__name">{$dl.nickname}</a>
                        <div class="b-block1__time">{$dl.create_time|format_time}</div>
                    </div>
                </foreach>

            </div>

        </div>
    </div>
</div>
    <include file="Public:footer"/>

</div>
<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>

</body>
</html>